package FactoryMethodModel;

/**
 * @program: DesignModeProject
 * @description:
 * @author: Li canzhang
 * @create: 2022-04-23 21:37
 **/
public abstract class OrderPizza {
    protected String orderType;

    public abstract Pizza createPizza(String orderType);

    public OrderPizza(String orderType){
        Pizza pizza = null;
        pizza = createPizza(orderType);
        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

    }
}
